<?php


/**
 * comment
 * 
 * @package   
 * @author 
 * @copyright stawiu
 * @version 2009
 * @access public
 */
class comment {
		 	
	private $idComment;
	private $text;
	private $timeDate;
	private $user;
	
	
	
	/**
	 * Enter description here...
	 *
	 * @param int $idComment
	 * @param string $text
	 * @param int $timeDate
	 * @param user $user
	 */
	function __construct($idComment, $text, $timeDate, user $user) {
		$this->setIdComment($idComment);
		$this->setText ( $text );	
		$this->setTimeDate ( $timeDate );
		$this->setUser ( $user );
	}
	/**
	 * @return unknown
	 */
	public function getIdComment() {
		return $this->idComment;
	}
	
	/**
	 * @param unknown_type $idComment
	 */
	public function setIdComment($idComment) {
		primitiveTypes::int($idComment);
		$this->idComment = $idComment;
	}

	
	/**
	 * @return unknown
	 */
	public function getText() {
		return $this->text;
	}
	
	/**
	 * @param unknown_type $text
	 */
	public function setText($text) {
		primitiveTypes::string($text);
		$this->text = $text;
	}
	
	/**
	 * @return unknown
	 */
	public function getTimeDate() {
		return $this->timeDate;
	}
	
	/**
	 * @param unknown_type $timeDate
	 */
	public function setTimeDate($timeDate) {
		primitiveTypes::int($timeDate);
		$this->timeDate = $timeDate;
	}
	
	/**
	 * @return unknown
	 */
	public function getUser() {
		return $this->user;
	}
	
	/**
	 * @param user $user
	 */
	public function setUser(user $user) {
		$this->user = $user;
	}


}

?>